%html{ lang: I18n.locale }
  %head
    %meta{ content: "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
    -# haml-lint:disable NoPlainNodes
    %title
      GitLab
    -# haml-lint:enable NoPlainNodes
    = universal_stylesheet_link_tag 'mailers/notify_enhanced'
    %style{ type: 'text/css', 'data-premailer': 'ignore' }
      -# The MUA automatically turns some text into links.
      -# Match the color of explicit links ($blue-600 from typography.scss).
      a { color: #1068bf; }
    = yield :head
  %body
    = html_header_message
    -# Test stub for RSpec testing of Notify and associated modules
    -# Sometimes we override the choosen layout via `determine_layout` in our Notify mailer
    -# but ActionMailer doesn't support testing layout in pure Ruby so this HTML comment is
    -# used for testing the determined layout
    - if Rails.env.test?
      / determine_layout returned template service_desk
    .content
      = yield
    .footer{ style: "margin-top: 10px;" }
      %p
        &mdash;
        %br
        = link_to "Unsubscribe", @unsubscribe_url

        = render_if_exists 'layouts/email_additional_text'
        = html_footer_message
